import { PageContainer } from '@ant-design/pro-components';
import { Tabs } from 'antd';
import React from 'react';
import DeviceManage from './components/DeviceManage';
import PasswordReset from './components/PasswordReset';

const SystemSettings: React.FC = () => {
  const items = [
    {
      key: 'password',
      label: '重置密码',
      children: <PasswordReset />,
    },
    {
      key: 'device',
      label: '设备管理',
      children: <DeviceManage />,
    },
  ];

  return (
    <PageContainer>
      <Tabs defaultActiveKey="password" items={items} />
    </PageContainer>
  );
};

export default SystemSettings;
